﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildLeaderImpeach extends IMessageBase
    {
        public var guildId:int;
        public var impeachType:int;
        public var endDate:Date;
        public var leaderName:String;
        public var fromPlayer:String;
        public var extend:int;
        public const _type:int = 16104;
        public static var _regist:SGuildLeaderImpeach = new SGuildLeaderImpeach(true);

        public function SGuildLeaderImpeach(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildLeaderImpeach();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.guildId);
            param1.writeInt(this.impeachType);
            param1.writeDate(this.endDate);
            param1.writeString(this.leaderName);
            param1.writeString(this.fromPlayer);
            param1.writeInt(this.extend);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = param1.readInt();
            this.impeachType = param1.readInt();
            this.endDate = param1.readDate();
            this.leaderName = param1.readString();
            this.fromPlayer = param1.readString();
            this.extend = param1.readInt();
            return;
        }// end function

    }
}
